package com.beauty.logistics.repository;

import com.beauty.logistics.entity.Carrier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface CarrierRepository extends JpaRepository<Carrier, Long> {
    
    Optional<Carrier> findByName(String name);
    
    Optional<Carrier> findByCode(String code);
    
    List<Carrier> findByIsActive(Boolean isActive);
    
    List<Carrier> findBySupportedCountriesContaining(String country);
} 